<?php
include 'region.php';

$region= new region();
switch($action){
	case 'delete' :
		$region->IDregion = $_GET['IDregion'];
		$region->delete();
	break;
	case 'insert' :
		//$_POST : ambil data dari form
		$POST["summit"] == "Simpan";
		$region->IDRegion = $_POST['IDRegion'];
		$region->NamaRegion = $_POST['NamaRegion'];
		$region->insert();
	break;
}
if($action != null)
	header('Location: http://localhost/WEPO-PKL/halamandashboard.php');
?>